package com.xjrh.traintravel.collector.netty.command.file;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;
import java.util.List;

/**
 * 文件列表
 *
 * @author snps
 * @create 2022-02-08 10:00
 * @describe
 **/
public class FileList extends BaseCommand implements Serializable {




    /**
     * 文件总数
     */
    private int fileCount;

    /**
     * 当前传输个数
     */
    private int currentNumber;

    /**
     * 最后一帧标识
     *      01：最后一帧
     */
    private String lastFrame;

    /**
     * 文件信息
     */
    private List<FileInfo> fileInfos;

    /*****************************************
     * Getter and Setter
     */
    public int getFileCount() {
        return fileCount;
    }

    public void setFileCount(int fileCount) {
        this.fileCount = fileCount;
    }

    public int getCurrentNumber() {
        return currentNumber;
    }

    public void setCurrentNumber(int currentNumber) {
        this.currentNumber = currentNumber;
    }

    public String getLastFrame() {
        return lastFrame;
    }

    public void setLastFrame(String lastFrame) {
        this.lastFrame = lastFrame;
    }

    public List<FileInfo> getFileInfos() {
        return fileInfos;
    }

    public void setFileInfos(List<FileInfo> fileInfos) {
        this.fileInfos = fileInfos;
    }


    @Override
    public String toString() {
        return "FileList{" +
                "fileCount=" + fileCount +
                ", currentNumber=" + currentNumber +
                ", lastFrame='" + lastFrame + '\'' +
                ", fileInfos=" + fileInfos +
                '}';
    }

}